<!-- 修改密码 -->
<form id="formChangePwd" name="formChangePwd">
    <ul style="padding:8px 60px;margin-top:10px;">
        <li>
            <label>输入旧密码：</label>
            <input class="easyui-validatebox base-input" onkeyup="this.value=this.value.replace(' ','')" name="pwdOldCrypt" id="pwdOldCrypt" 
             type="password" data-options="required:true,
             validType:'length[6,12]'" />
        </li>
        <li>
            <label>输入新密码：</label>
            <input class="easyui-validatebox base-input" onkeyup="this.value=this.value.replace(' ','')" name="pwdNewCrypt" id="pwdNewCrypt" 
             type="password" onKeyUp="pwStrength(this.value)" onBlur="editPassword.pwStrength(this.value)"
             data-options="required:true,
             validType:['length[6,12]','notEquals[\'#pwdOldCrypt\']']" />
        </li>
        <li>
            <label style="float:left;">新密码强度：</label>
            <table style="font-size:12px;color:#FFF;text-align:center;float:left;" width="155" border="0" cellspacing="1" cellpadding="0"> 
                <tr> 
                    <td style="background:#CFCFCF;" id="strength_L">弱</td> 
                    <td style="background:#CFCFCF;" id="strength_M">中</td> 
                    <td style="background:#CFCFCF;" id="strength_H">强</td> 
                </tr> 
            </table> 
        </li>
        <li>
            <label>确认新密码：</label>
            <input class="easyui-validatebox base-input" onkeyup="this.value=this.value.replace(' ','')" name="pwdCfmCrypt" id="pwdCfmCrypt" 
             required="required"
             type="password"  validType="equals['#pwdNewCrypt']" />
        </li>
    </ul>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-okWin8'" 
     style="float:right;margin:5px 130px 0px 0px;" onclick="editPassword.updateCrypt();">确定</a>
    <a class="easyui-linkbutton" onClick="CommonPageScript.closeDialog('edit_password');" 
     data-options="iconCls:'icon-closeWin8'"
     style="float:right;margin:5px 10px 0px 0px;">关闭</a>
</form>
<center>
    <a style="color:#F00;line-height:50px;height:30px;">建议:密码使用字母+数字、6~12位字符</a>
</center>
<script type="text/javascript">
    var editPasswordUrl = {
        // 验证密码
        passwordValidate:"${ctx}/user/password_validate",
        // 更新密码
        updatePassword:"${ctx}/user/update_password",
    };
    editPassword.init();
</script>